package createtype.Singleton;

/**
 * Created by LYJ on 2016/10/18.
 * 懒汉式
 */
public class LazySingleton {
    private static LazySingleton uniqueInstance;
    private LazySingleton(){}
    public static LazySingleton getInstance(){
        if (uniqueInstance==null)
            uniqueInstance=new LazySingleton();
        return uniqueInstance;
    }
}
